package com.example.new4.component;


import com.example.new4.module.CourseModule;
import com.example.new4.module.DBModule;
import com.example.new4.module.SpUtilsModule;
import com.example.new4.module.StudentModule;
import com.example.new4.utils.SpUtils;
import com.example.new4.views.InfoActivity;
import com.example.new4.views.MainActivity;

import dagger.Component;
import jakarta.inject.Singleton;

@Singleton
@Component(modules = {StudentModule.class, CourseModule.class,DBModule.class, SpUtilsModule.class})
public interface AllComponent {
   void injectMainActivity(MainActivity mainActivity);
   void injectInfoActivity(InfoActivity infoActivity);
   SpUtils spUtils();// 提供 SpUtils 的实例
}
